home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / driveq-2.zip / DRIVEQ.DOC next >
Text File  |  1991-12-01  |  7KB  |  168 lines

  1.  
  2.  
  3.  
  4.                 ═════    ══════   ════  ══  ══  ═══════   ═════  (R)
  5.                  ══ ═══   ══  ══   ══   ══  ══   ══   ═  ══   ══
  6.                  ══  ══   ══  ══   ══   ══  ══   ══      ══   ══
  7.                  ══  ══   ═════    ══   ══  ══   ════    ══ ═ ══
  8.                  ══  ══   ════     ══   ══  ══   ══      ══ ════
  9.                  ══ ═══   ══ ══    ══    ════    ══   ═   ═════
  10.                 ═════    ═══  ══  ════    ══    ═══════       ══
  11.  
  12.                        D R I V E Q   b y   H e x / 2 9 A
  13.  
  14.                             (C) Copyright 1990-1991
  15.  
  16.                                 HK SQUARE INC.
  17.                          24-16 Steinway Str. Suit 580
  18.                              L.I.C., NY 11103-3612
  19.  
  20.  
  21.  
  22.          This is  Version 2.0  of DRIVEQ.   The  program is  written to  be
  23.     compatible with clone  BIOSs and PC/MS-DOS  5.xx.  It  will run on  any
  24.     PC/XT/AT/386 or 486 with  disk drives A:   though Z:.  It  support MFM,
  25.     RLL, IDE, ESDI  and SCSI hard  disks.  DRIVEQ  will also function  on a
  26.     network if the drives on the network can be accessed using the  regular
  27.     DOS command (i.e.  Z:).
  28.  
  29.          Special thanks to Mr. George Hrysanthopoulos for the original idea
  30.     (ANSYQ).  Enjoy it!
  31.                                                       Hex/29A
  32.  
  33.  
  34.     PROGRAM / PROGRAMMER / DATE:
  35.     ════════════════════════════
  36.          DRIVEQ.EXE / Ioannis "Hex/29A" Hadjiioannou / Dec 1st 1991.
  37.  
  38.  
  39.     DISTRIBUTION:
  40.     ═════════════
  41.          DRIVEQ.EXE is a user supported program.  It is now and will always
  42.     remain the sole  property of the  author.  This  program may be  freely
  43.     distributed as long as the following limitations are adhered to:
  44.  
  45.            1. THE PROGRAM AND DOCUMENTATION MAY NOT BE MODIFIED.
  46.  
  47.            2. THE ENTIRE DOCUMENTATION FILE MUST BE INCLUDED WITH  THE
  48.               PROGRAM.
  49.  
  50.            3. THE AUTHOR'S COPYRIGHT NOTICE IS NOT TO BE REMOVED.
  51.  
  52.            4. NO  FEE  FOR  THE  PROGRAM  MAY  BE CHARGED OUTSIDE OF A
  53.               REASONABLE CHARGE  FOR DISKETTE  MEDIA AND/OR  SHIPPING.
  54.               ($2.50 MAX).
  55.  
  56.            5. IT MAY NOT BE PACKAGED  OR SOLD IN CONJUNCTION WITH  ANY
  57.               OTHER PRODUCT.
  58.  
  59.            6. DISTRIBUTION OF THESE FILES (DRIVEQ.EXE AND DRIVEQ.DOC),
  60.               USING   THE   COMPRESSION   PROGRAM   "ARC"   BY  SYSTEM
  61.               ENHANCEMENT   ASSOCIATES   INC   (SEA),   IS    STRICTLY
  62.               PROHIBITED.
  63.  
  64.         NOTE: Shareware Houses and  User Groups can  distribute DRIVEQ
  65.               with other  programs as  long as  they register  one (1)
  66.               copy  and  obtain  authorization  from  the author.  See
  67.               REGISTRATION/CONTRIBUTION.
  68.  
  69.  
  70.     WARRANTY:
  71.     ═════════
  72.          THE PROGRAM  AND DOCUMENTATION  IS SUPPLIED  AS-IS AND  THE AUTHOR
  73.     DISCLAIMS  ALL  WARRANTIES,  EXPRESSED  OR  IMPLIED, INCLUDING, WITHOUT
  74.     LIMITATION, THE  WARRANTIES OF  MERCHANTABILITY AND  THE WARRANTIES  OF
  75.     FITNESS FOR ANY PURPOSE.  THE AUTHOR FURTHER RESERVES THE RIGHT TO MAKE
  76.     CHANGES TO THE  PROGRAM OR DOCUMENTATION  WITHOUT OBLIGATION TO  NOTIFY
  77.     ANY PERSON OR ORGANIZATION OF SUCH CHANGES.
  78.  
  79.  
  80.     FORMAT:
  81.     ═══════
  82.          DRIVEQ <Drive> in a batch file.
  83.  
  84.  
  85.     PURPOSE:
  86.     ════════
  87.          DRIVEQ  was  developed  for  those  who  want  to  query about the
  88.     presence of a drive in their system from a batch file.
  89.  
  90.  
  91.     HOW IT WORKS:
  92.     ═════════════
  93.          DRIVEQ will accept  a one drive  letter parameter.   If that drive
  94.     exists, DRIVEQ will return ERRORLEVEL equal to 0. If the drive does not
  95.     exist it  will return  ERRORLEVEL equal  to 1.  If the  query is  for a
  96.     floppy drive, then DRIVEQ will return ERRORLEVEL equal to 0 if there is
  97.     a floppy disk  in the drive  and ERRORLEVEL equal  to 1 if  there is no
  98.     floppy in the drive.
  99.  
  100.          In our  system DRIVEQ  is used  in the  AUTOEXEC.BAT to  determine
  101.     whether or not the RAM drive  installation was successful.  If the  RAM
  102.     drive was installed  successfully then some  files are copied  to it to
  103.     speed up the execution  of those programs, their  environment variables
  104.     are set  to point  to the  RAM drive  and the  TMP and TEMP environment
  105.     variables that are used to point to the temporary disk are set.
  106.  
  107.          This is how it looks:
  108.  
  109.               @REM ════════════════ AUTOEXEC.BAT ══════════════════
  110.  
  111.               @ECHO off
  112.               VERIFY off
  113.               SET RAMDRV=off
  114.  
  115.               REM ─────────────── SET RAM DRIVE ────────────────────
  116.  
  117.               C:\U\driveq.exe d
  118.               IF Errorlevel 1 GOTO END1
  119.  
  120.                  REM ─── SET UP ENVIRONMENT VARIABLES
  121.  
  122.                  SET RAMDRV=on
  123.                  SET TMP=d:\
  124.                  SET TEMP=d:\
  125.                  SET COMSPEC=%TMP%4dos.com
  126.                  SET 4DSHELL=/s:x /e:1024 /l:%TMP%
  127.                  SET KEDIT=defprofile %TMP%profile.kex macrop kexpath
  128.                  SET FLIX=%TMP%
  129.  
  130.                  REM ─── COPY FILES TO THE RAM DRIVE
  131.  
  132.                  ECHO ═ Moving files to %TMP% ══════════════════════
  133.                  COPY C:\SYSTEM\4D\4dos.com %tmp%4dos.com       > NUL
  134.                  COPY C:\SYSTEM\4D\4dos286.exe %tmp%4dos286.exe > NUL
  135.                  COPY C:\U\KEDIT\kedit.exe %TMP%                > NUL
  136.                  COPY C:\U\KEDIT\profile.kex %TMP%              > NUL
  137.                  COPY C:\U\KEDIT\kedit.hlp %TMP%                > NUL
  138.                  COPY C:\U\FLIX\flix.exe %TMP%                  > NUL
  139.                  COPY C:\U\FLIX\flix.pro %TMP%                  > NUL
  140.                  COPY C:\U\FLIX\flix.hlp %TMP%                  > NUL
  141.                  COPY C:\U\LIST\list.com %TMP%                  > NUL
  142.                  COPY C:\U\V7\esu.com %TMP%                     > NUL
  143.  
  144.               :END1
  145.  
  146.  
  147.     INSTALLATION:
  148.     ═════════════
  149.          No special installation is required.
  150.  
  151.  
  152.     ERROR MESSAGES:
  153.     ═══════════════
  154.          None.
  155.  
  156.  
  157.     REGISTRATION/CONTRIBUTION:
  158.     ══════════════════════════
  159.          If you receive this program from another user or download it  from
  160.     your local  BBS and  find it  of value,  your $10  contribution will be
  161.     appreciated.  Please send comments and suggestions to:
  162.  
  163.                                 HK SQUARE INC.
  164.                              Ioannis Hadjiioannou
  165.                          24-16 Steinway Str. Suit 580
  166.                              L.I.C., NY 11103-3612
  167.                                     U.S.A.
  168.